var arr=[1,2,3,'fds','fds','as']
arr[9]=55;

console.log(arr);

var arr1=[1,2,3,'hg','ghgd','8s']

console.log(arr1.indexOf('hg'));
console.log(arr1.indexOf('85'));
console.log(arr1.slice(0,4));
console.log(arr1.slice(4));
console.log(arr1.slice());

var arr2=[1,2,3,4]

arr2.pop();
arr2.pop();
arr2.pop();

console.log(arr2);

arr2.push('赛东升');
console.log(arr2)

arr2.unshift('活猪','刘毅');
console.log(arr2);
arr2.shift();
console.log(arr2);
console.log(arr2.shift());

var arr3=[8,2,6,4]
arr3.sort();
console.log(arr3);
arr3.reverse();
console.log(arr3);

var arr4=[14,29,35,48,'ds','dgr']
arr4.splice(2,1,'sai','gan');
console.log(arr4);

var ju=arr4.concat(['huo','zhu']);
console.log(ju);

arr4.join('-')
console.log(arr4);

